Termination Proof Script
Consider the TRS R consisting of the rewrite rules
|
1: |
|
0 + y |
→ y |
2: |
|
s(x) + y |
→ s(x + y) |
3: |
|
0 - y |
→ 0 |
4: |
|
x - 0 |
→ x |
5: |
|
s(x) - s(y) |
→ x - y |
|
There are 2 dependency pairs:
|
6: |
|
s(x) +# y |
→ x +# y |
7: |
|
s(x) -# s(y) |
→ x -# y |
|
The approximated dependency graph contains 2 SCCs:
{6}
and {7}.
-
Consider the SCC {6}.
There are no usable rules.
By taking the AF π with
π(+#) = 1 together with
the lexicographic path order with
empty precedence,
rule 6
is strictly decreasing.
-
Consider the SCC {7}.
There are no usable rules.
By taking the AF π with
π(-#) = 1 together with
the lexicographic path order with
empty precedence,
rule 7
is strictly decreasing.
Hence the TRS is terminating.
Tyrolean Termination Tool (0.01 seconds)
--- May 4, 2006